[{
    login:function(params) {
		var username = params[0];
		var password = params[1];
		var ret = {
			version:"mock1",
			id:1
		};
		if (username == "user1" && password == "pass1") {
			ret.result = "public";
		} else if (username = "" || password == "") {
			ret.error = {code:99, message:"Blank username or password is not allowed.", error:"Invalid parameters"};
		} else {
			ret.result = "false";
		}
		return ret;
	}
}]
